-- GENERATED SPELL FOR [Burning Blade Shadowmage] --


function spell0_4667(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4667', 3000, 1)
end

function spell1_4667(pUnit, Event) --@Shadow Shell,n/a--
pUnit:FullCastSpellOnTarget(9657,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4667', 10279, 1)
end

function Sorts_4667(pUnit, Event)
local choix_sorts_4667 = math.random(0, 1)
if choix_sorts_4667 == 0 then
pUnit:RegisterEvent('spell0_4667', 1, 1)
end
if choix_sorts_4667 == 1 then
pUnit:RegisterEvent('spell1_4667', 1, 1)
end
end

function mob4667_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4667', math.random(1500, 3000), 1)
end

function mob4667_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4667_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4667_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4667, 1, 'mob4667_Action')
RegisterUnitEvent(4667, 2, 'mob4667_Leave')
RegisterUnitEvent(4667, 3, 'mob4667_Kill')
RegisterUnitEvent(4667, 4, 'mob4667_Die')
